package com.shenmazong.servereduresume.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shenmazong.servereduresume.dto.TbSkillInformation;
import com.shenmazong.servereduresume.service.TbSkillInformationService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 */
@RestController
@RequestMapping("skill-information")
public class TbSkillInformationController  {
    @Autowired
    private TbSkillInformationService tbSkillInformationService;
    @PostMapping("findByInformationId")
    public ResultResponse findByInformationId(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbSkillInformationService.findByInformationId(batchChooseIdVo);
    }
    @PostMapping("saveSkillInformation")
    public ResultResponse saveSkillInformation(@RequestBody TbSkillInformation tbSkillInformation){
        return tbSkillInformationService.saveSkillInformation(tbSkillInformation);
    }
    @PostMapping("deleteSkillInformation")
    public ResultResponse deleteSkillInformation(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbSkillInformationService.deleteSkillInformation(batchChooseIdVo);
    }
}
